<?php
/**
 * @version		1.0.1 audit
 * @author		PROinsurer
 * @website		www.proinsurer.com.ua
 */
defined('_JEXEC') or die('Restricted access'); 
// ШАПКА
include_once JPATH_COMPONENT .'/views/header.php';
?>

<section id="buttonGroups">			
<div class="row">
	<div class="span3">
    <? include_once JPATH_COMPONENT .'/views/left_2.php'; ?>
    </div>
	<div class="span9">
	<h1>Справочник регионов</h1>
	<div class="?">	
		<div class="input-append help-inline">
			<input class="span3" id="appendedInputButtons" size="16" type="text">
			<button class="btn" type="button">Search</button>
		</div>
		<div class="pagination pagination-right help-inline pull-right">
              <ul>
                <li><a href="#">«</a></li>
                <li class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">»</a></li>
              </ul>
        </div>
	</div>	
		<table class="table table-hover table-bordered">
              <thead>
                <tr>
                  <th>№</th>
                  <th>Регион</th>
				  <th>Тип региона</th>
                </tr>
              </thead>
              <tbody>
                <tr>	
	<?php 
		/*	[id] => 801
            [code] => 0100000000000
            [name] => Адыгея
            [type] => Республика 
		*/
	//	echo "<pre>";
		// print_r($this->s);
	//	echo "</pre>";
	
	$rows = ($this->s);		
			
	FOREACH ($rows as $row) {
		$id = $row->id;
		$name = $row->name;
		$type = $row->type;
	?>
	
                  <td><?=$id;?></td>
                  <td><?=$name;?></td>
                  <td><?=$type;?></td>
			</tr>
			<? } ?>	
              </tbody>
            </table>
	</div>
	
</div>
</section>

<?
   // -- ПОДВАЛ ----------------------------------------------------------------
   include_once JPATH_COMPONENT .'/views/futer.php';
?>

<?
   //  -- Файл с Окошками... ---------------------------------------------------
   include_once JPATH_COMPONENT .'/views/windows.php';
?>

<?
   //  -- Файл со Скриптами... -------------------------------------------------
   //include_once JPATH_COMPONENT .'/views/default.js.php';
?>